<?php
namespace Json\Controller;
use Think\Controller;
class VideoController extends Controller {

  public function videolistJson(){
       
       $use= $this->users=M('video')->select();
   echo json_encode($use);
      } 
  
    public function videoOneJson($id){
       
       $video = M('video') -> where("videoid='$id'") -> find();
       echo json_encode($video);
      } 
}
?>